package com.example.testdb1.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel(description = "分页参数")
@NoArgsConstructor
@AllArgsConstructor
public class PageDto implements Serializable {

    @ApiModelProperty(value = "页码", example = "1", name = "page")
    private Integer page;
    @ApiModelProperty(value = "每页大小", example = "1", name = "pageSize")
    private Integer pageSize;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime start;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime end;
}
